package com.sf.fy.uav.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 * 活动奖励规则表
 * </p>
 *
 * @author LTQ
 * @since 2024-10-09
 */
@TableName("activity_reward_rules")
@ApiModel(value = "ActivityRewardRules对象", description = "活动奖励规则表")
public class ActivityRewardRules implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("活动id")
    private String activityId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("产品类型")
    private Byte productType;

    @ApiModelProperty("奖励规则")
    private String rewardRule;

    /**
     * 可以理解为状态值，在特定业务场景下，已被逻辑删除的行可能会重新更新上线
     */
//    @TableLogic(delval = "1", value = "0")
    private Boolean deleted;

    @ApiModelProperty("奖励金额")
    private BigDecimal rewardAmount;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Byte getProductType() {
        return productType;
    }

    public void setProductType(Byte productType) {
        this.productType = productType;
    }

    public String getRewardRule() {
        return rewardRule;
    }

    public void setRewardRule(String rewardRule) {
        this.rewardRule = rewardRule;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public BigDecimal getRewardAmount() {
        return rewardAmount;
    }

    public void setRewardAmount(BigDecimal rewardAmount) {
        this.rewardAmount = rewardAmount;
    }


    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    @Override
    public String toString() {
        return "ActivityRewardRules{" +
                "id = " + id +
                ", createTime = " + createTime +
                ", updateTime = " + updateTime +
                ", productType = " + productType +
                ", rewardRule = " + rewardRule +
                ", deleted = " + deleted +
                ", rewardAmount = " + rewardAmount +
                "}";
    }
}
